package lab02.test13;

public class School extends ComputerAverage {

    @Override
    double average(double[] scores) {
        double sum=0;
        double average ;
        //得出总分
        for(int i=0;i<scores.length;i++){
            sum=sum+scores[i];
        }
        //平均分
        average=sum/scores.length;
        return average;
    }
}
